<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>

<html>
<head>
	<link rel="StyleSheet" href="${pageContext.request.contextPath}/common/tree/dtree/dtree.css" type="text/css" />
	<script type="text/javascript" src="${pageContext.request.contextPath}/common/tree/dtree/dtree.js"></script>

</head>
<body style="margin: 0;">
  <table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#f1f5f9">
    <tr>
      <td height="100%" align="center" valign="top" class="x_leftBg">
      <table width="100%" height="100%" border="0" cellspacing="0" cellpadding="0">
      	  <tr>
          <td align="center" height="100%">
          <table width="196" height="100%" border="0" align="center" cellpadding="0" cellspacing="0">
            
            <tr>
              <td align="center" valign="middle" ><table width="100%" height="100%"  border="0" cellspacing="0" cellpadding="0">
              
                  <tr>
                    <td align="center" class="x_bottombg"  height="100%" valign="top" >
						<div style="padding-left: 10px;padding-top: 10px;width:210px; border: 0px #000000 solid;overflow:auto;height: 100%; " align="left">
						<script type="text/javascript">
							d = new dTree('d','${pageContext.request.contextPath}/common/tree/dtree/');				
						  		d.add(0,-1,'景区客源分析系统','${pageContext.request.contextPath }/main.jsp','','main_right');
								d.add(1,0,'统计分析','','','main_right',null,null,true);
								d.add(11,1,'入境车辆数统计','','','main_right',null,null,true);
								d.add(111,11,'入境游客车辆数统计','${pageContext.request.contextPath }/report/AreaReport_carCount.action','','main_right',null,null,false);
								d.add(112,11,'入境游客车辆数年度统计','${pageContext.request.contextPath }/report/YearMonthReport_carCount.action','','main_right',null,null,false);
								d.add(113,11,'入境游客车辆数与去年同比','${pageContext.request.contextPath }/report/YearToYear_carCount.action','','main_right',null,null,false);
								
								d.add(12,1,'入境游客数统计','','','main_right',null,null,true);
								d.add(121,12,'入境游客数分布统计','${pageContext.request.contextPath }/report/AreaReport_personCount.action','','main_right',null,null,false);
								d.add(122,12,'入境游客数年度统计','${pageContext.request.contextPath }/report/YearMonthReport_personCount.action','','main_right',null,null,false);
								d.add(123,12,'入境游客数与去年同比','${pageContext.request.contextPath }/report/YearToYear_personCount.action','','main_right',null,null,false);
								
								d.add(13,1,'分析决策','','','main_right',null,null,true);
								d.add(131,13,'散客游客购票统计','${pageContext.request.contextPath }/report/AreaTicket_ticketCount.action','','main_right',null,null,false);
								d.add(132,13,'游客购票分析','${pageContext.request.contextPath }/report/TicketDetail_ticketCount.action','','main_right',null,null,false);
								d.add(133,13,'游客活动分析','${pageContext.request.contextPath }/report/DataAnalysis_activeCount.action','','main_right',null,null,false);
								d.add(134,13,'滞留车辆数统计','${pageContext.request.contextPath }/report/LeaveReport_carCount.action','','main_right',null,null,false);
								d.add(135,13,'平均车辆数分析','${pageContext.request.contextPath }/report/TicketCarAvg_ticketCount.action','','main_right',null,null,false);
								d.add(136,13,'游客结构分析表','${pageContext.request.contextPath }/report/TicketMarket_ticketCount.action','','main_right',null,null,false);
								if('${users.roleId}'=='0'){
									d.add(2,0,'系统管理','','','main_right',null,null,true);
									d.add(31,2,'菜单管理','${pageContext.request.contextPath }/sys/Menus_findByPid.action','','main_right',null,null,false);
									d.add(32,2,'角色管理','${pageContext.request.contextPath }/sys/Roles_find.action','','main_right',null,null,false);
									d.add(33,2,'用户管理','${pageContext.request.contextPath }/sys/Users_find.action','','main_right',null,null,false);
									d.add(22,2,'景区区域信息管理','${pageContext.request.contextPath }/admin/Parkarea_findByPid.action','','main_right',null,null,false);
									//d.add(23,2,'卡口配置','${pageContext.request.contextPath }/parkdemo/admin/way/list.jsp','','main_right',null,null,false);
									//d.add(24,2,'车型管理','${pageContext.request.contextPath }/parkdemo/admin/cartype/list.jsp','','main_right',null,null,false);
									d.add(25,2,'车牌颜色管理','${pageContext.request.contextPath }/admin/Carcolor_find.action','','main_right',null,null,false);
									d.add(26,2,'市场区域管理','${pageContext.request.contextPath }/admin/Areacity_find.action','','main_right',null,null,false);
									d.add(27,2,'区域管理','${pageContext.request.contextPath }/admin/City_find.action','','main_right',null,null,false);
								}
							  	document.write(d);
							 parent.main_right.location.href="${pageContext.request.contextPath }/main.jsp";
						</script>
						</div>
					</td>
                  </tr>
              </table></td>
            </tr>
          </table></td>
        </tr>
      
      </table> 
	</td>
    </tr>
  </table>

</body>
</html>